<!DOCTYPE html>
<html>
    <head>
        <title>Comparing CloudSim and CloudSim Plus Java Simulation Scenarios</title>
        <style>
            div {
                height: 100%; 
                float: left;
            }
        </style>
    </head>
    <body>
        <p>
        <strong>
        This page shows a side-by-side comparison of a minimal but complete Java code required to create the same simulation scenario in <a href="http://cloudbus.org/cloudsim/"> CloudSim</a> as well as <a href="http://cloudsimplus.org">CloudSim Plus</a>. <br/>
        The code in the left is the simulation scenario in CloudSim and the one in the right is the same scenario in CloudSim Plus.<br/>
        The source files have small comments to describe each step of the simulation. The equivalent instructions in each example are positioned at a line with the same number, so that you can easily compare how a feature is implemented in each framework.
        At the end of the page, you can see images of how both frameworks present simulation results.
        </strong>
        </p>

        <div style="width:100%;">
            <div style="width:50%">
                <script src="https://gist.github.com/manoelcampos/78a8dd1b595ef5ceb0b89fa978661225.js?file=CloudSimExampleToCompareWithCloudSimPlus.java"></script>
            </div>            
            <div style="width:50%">
                <script src="https://gist.github.com/manoelcampos/78a8dd1b595ef5ceb0b89fa978661225.js?file=CloudSimPlusExampleToCompareWithCloudSim.java"></script>
            </div>
        </div>

        <div style="width:100%;">
            <div style="width:50%">
                <script src="https://gist.github.com/manoelcampos/78a8dd1b595ef5ceb0b89fa978661225.js?file=simulation-results-cloudsim.png"></script>
            </div>
            <div style="width:50%">
                <script src="https://gist.github.com/manoelcampos/78a8dd1b595ef5ceb0b89fa978661225.js?file=simulation-results-cloudsim-plus.png"></script>
            </div>            
        </div>        
    </body>
</html>